﻿
using System;

namespace StationPriority {
    struct SupplyDemandPairPatch : IComparable {
        public SupplyDemandPair origin;
        public int supplyPriority;

        public int CompareTo(object obj) {
            SupplyDemandPairPatch other = (SupplyDemandPairPatch)obj;
            if (supplyPriority > other.supplyPriority) {
                return 1;
            } else if (supplyPriority < other.supplyPriority) {
                return -1;
            } else {
                return 0;
            }
        }
    }
}
